<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	template="/WEB-INF/templates/template.xhtml">
	<ui:define name="content">
		<f:metadata>
			<f:viewParam name="id" value="#{paisBean.id}" />
			<f:event type="preRenderView"
				listener="#{paisBean.initConversation}" />
		</f:metadata>
		<h:form>
			<h:outputText value="Nombre" styleClass="caption" />
			<div class="value">
				<h:inputText value="#{paisBean.entity.name}" id="name" />
				<h:message for="name" styleClass="errorMessage" />
			</div>

			<h:commandButton value="Guardar" action="#{paisBean.persist}"
				style="margin-right : 8px" />
			<h:commandButton value="Cancelar" action="#{paisBean.cancel}"
				immediate="true" />
		</h:form>
	</ui:define>
</ui:composition>
